<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>闪烁效果</title>
    <link rel="stylesheet" href="../public.css">
    <style>
        .box{
            width:80%;
            margin: 20px auto;
            text-align: center;
            font-size: 32px;
            font-weight: bold;
        }
        @keyframes blink-smooth {
            50%{
                color: transparent;
            }
        }
        .highlight{
            animation: 1s blink-smooth 3;
        }
        .box .highlight1{
            
            animation: .5s blink-smooth 6 alternate;
        }
        .box .highlight2{
            animation: 1s blink-smooth 3 steps(1);
        }
    </style>
</head>
<body>
    <div class="content">
        <h1>闪烁效果</h1>
        <div class="box">
            <div class="highlight">
                闪烁效果
            </div>
        </div>
        <div class="box">
            <div class="highlight highlight1">
                闪烁效果
            </div>
        </div>
        <div class="box">
            <div class="highlight highlight2">
                闪烁效果
            </div>
        </div>
    </div>
</body>
</html>